import { request } from '@/utils/request.js'

//登录
export function login (data) {
  return request({
    url: '/api/login',
    method: 'POST',
    data: data
  })
}

//注册
export function register (data) {
  return request({
    url: '/api/register',
    method: 'POST',
    data: data
  })
}

//测试token
export function current () {
  return request({
    url: '/api/user/current',
    method: 'get'
  })
}